package com.own.business.system.account.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.own.component.common.base.entity.po.BasePo;
import com.own.constant.ConstantAccount;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * SystemAccount
 *
 * @author chenxueli
 * @date 2022-09-10 16:04:00
 */
@Schema(title = "账号" + ConstantBeanSuffix.PO)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "own_system_account")
public class SystemAccount extends BasePo implements Serializable {

    /**
     * 账号
     */
    private String account;

    /**
     * 密码
     */
    private String password;

    /**
     * 类型
     */
    private String type;

    /**
     * 用户id
     */
    private Long fkUserId;

    /**
     * 是否启用 1=启用 0=禁用
     */
    private Integer enable;

    /**
     * 账号类型 1=普通用户 2=管理员
     *
     * @see ConstantAccount.Type#NORMAL
     * @see ConstantAccount.Type#ADMIN
     */
    private Integer accountType;

}
